<cpanel include="../../config.php">

<?

/***************************************************************************
 *                                 pro_box_trapper_list_edit.php
 *                            -------------------
 *   Begin                : Thursday, April 16, 2005
 *   Copyright            : (C) 2005 Point and Code
 *   Domain               : http://www.pointandcode.com/
 *   Email                : support@pointandcode.com
 *   Version              : 1.0.0
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 ***************************************************************************/

$html_root_path = '../../';
$page_title = "Edit Box Trapper List";
include $root_path.'common.php';
include $root_path.'page_header.php';

$template->set_filenames(array(
	'body' => $root_path.$template_path.'mail/pro_box_trapper_list_edit.tpl')
);

$list = <<<EOFpacman
<cpanel Fileman="fmpushfile($FORM{'path'},$FORM{'file'})">
EOFpacman;

switch ($HTTP_GET_VARS['file']) {
	case "white-list.txt":
		$list_name = "White List";
	break;
	case "black-list.txt":
		$list_name = "Black List";
	break;
	case "ignore-list.txt":
		$list_name = "Ignore List";
	break;
};


$s_hidden_inputs = "<input type=hidden name=account value=\"".$HTTP_GET_VARS['account']."\"><input type=hidden name=dir value=\"".$HTTP_GET_VARS['path']."\"><input type=hidden name=file value=\"".$HTTP_GET_VARS['file']."\">";

$template->assign_vars(array(
	'S_ACTION' => 'pro_box_trapper_list_edit_done.php',
	'S_HIDDEN_INPUTS' => $s_hidden_inputs,
	'LIST' => $list,
	'LIST_NAME' => $list_name,
	)
);





//
// Woohoo! All done!
//
$template->pparse('body');




include $root_path.'page_tail.php';




?>